package lean;
import java.util.Scanner;
public class test4 {
    public static void main(String [] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入五位的年龄:");
        for(int i=0;i<5;i++) {
            System.out.println("第"+(i+1)+"位的年龄");
            int old=sc.nextInt();
            if(old<0&&old>130) {
                System.out.println("输入有误，请重新输入");
                int count=0;
                count+=old;
                System.out.println("平均分为:"+count/5);

            }



        }



    }


}

